//标签字符串去除空格的函数。'  <div class='ok'></div>' ;
export default function delSpace(word){
	//结果字符串
	let resWord ='';
	//是否是标签内部的空格
	let isInnerSpace = false;
	//遍历原来的字符串
	for(let i=0;i<word.length;i++){
		//判断是否之标签内部的空格
		if(word[i]=='<'){
			isInnerSpace =true;
		}else if(word[i]=='>'){
			isInnerSpace =false;
		};
		//判断是否是空格
		if(!/^\s/.test(word[i])){
			resWord += word[i];
		}else{
			if(isInnerSpace){
				resWord +=word[i]
			}
		}
	}

	return resWord

}